package sip

import (
	"fmt"
)

// Response ...
// RFC 3261, 7.2
type Response struct {
	SIPVersion   string
	StatusCode   int
	ReasonPhrase string
}

// StatusLine ...
func (resp *Response) StatusLine() string {
	return fmt.Sprintf("%s SP %d SP %s CRLF", resp.SIPVersion, resp.StatusCode, resp.ReasonPhrase)
}
